
const routes = [
	{
		path : '/login',
		name : 'Login',
		component : () => import('@v/Login')
	},
	{
		path : '/',
		component : () => import('@v/Layout'),
		children : [
			{
				path : '',
				component : () => import('@v/Index'),
			},
			{//修改密码
				path : 'change-pwd',
				component : () => import('@v/ChangePwd'),
			},
			//开发管理
			{
				path : '/develop-setting',
				component : () => import('@v/develop/Layout'),
				children : [
					{//菜单管理
						path : 'menu',
						component : () => import('@v/develop/Menu'),
					},
					{//字典管理
						path : 'dictionary',
						component : () => import('@v/develop/Dictionary'),
					}
				]
			},
			//系统管理
			{
				path : '/system',
				component : () => import(/* webpackChunkName : "system" */ '@v/system/Layout'),
				children : [
					{//系统用户管理
						path : 'users',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/Users'),
					},
					{//角色管理
						path : 'roles',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/Roles'),
					},
					{//角色详情
						path : 'role-detail/:id',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/RoleDetail'),
					},
					{//基本设置
						path : 'basic',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/Basic'),
					},
					{//小程序配置
						path : 'mini-program',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/MiniProgram'),
					},
					{//公众号配置
						path : 'offical-account-config',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/officalAccountConfig'),
					},
					{//微信菜单配置
						path : 'wechat-menu',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/WechatMenu'),
					},
					{//公众号自动回复配置
						path : 'auto-replay-config',
						component : () => import(/* webpackChunkName : "system" */ '@v/system/autoReplayConfig'),
					}
				]
			},
			//悬赏管理
			{
				path : '/task',
				component : () => import(/* webpackChunkName : "task" */ '@v/task/Layout'),
				children : [
					{//悬赏设置
						path : 'setting',
						component : () => import(/* webpackChunkName : "task" */ '@v/task/Setting'),
					},
					{//悬赏分类
						path : 'task-tags',
						component : () => import(/* webpackChunkName : "task" */ '@v/task/TaskTags'),
					},
					{//悬赏列表
						path : 'list',
						component : () => import(/* webpackChunkName : "task" */ '@v/task/List'),
					},
					{//悬赏详情
						path : 'detail/:id',
						component : () => import(/* webpackChunkName : "task" */ '@v/task/Detail'),
					}
				]
			},
			//用户管理
			{
				path : '/users',
				component : () => import(/* webpackChunkName : "users" */ '@v/users/Layout'),
				children : [
					{//用户列表
						path : 'customer',
						component : () => import(/* webpackChunkName : "users" */ '@v/users/Customer'),
					},
					{//服务人员列表
						path : 'server',
						component : () => import(/* webpackChunkName : "users" */ '@v/users/Server'),
					},
					{//服务人员审核
						path : 'server-examine',
						component : () => import(/* webpackChunkName : "users" */ '@v/users/ServerExamine'),
					},
					//用户详情，无论是用户，还是服务人员，用得是同一个
					{//服务人员列表
						path : 'detail/:id?',
						component : () => import(/* webpackChunkName : "users" */ '@v/users/Detail'),
					},
				]
			},
			//商品管理
			{
				path : '/commodity',
				component : () => import(/* webpackChunkName : "commodity" */ '@v/commodity/Layout'),
				children : [
					{//规格管理
						path : 'properties',
						component : () => import(/* webpackChunkName : "commodity" */ '@v/commodity/Properties'),
					},
					{//规格详情
						path : 'property-detail/:id',
						component : () => import(/* webpackChunkName : "commodity" */ '@v/commodity/PropertyDetail'),
					},
					{//分类管理
						path : 'category',
						component : () => import(/* webpackChunkName : "commodity" */ '@v/commodity/Category'),
					},
					{//商品列表
						path : 'list',
						component : () => import(/* webpackChunkName : "commodity" */ '@v/commodity/List'),
					},
					{//商品详情
						path : 'detail/:id?',
						component : () => import(/* webpackChunkName : "commodity" */ '@v/commodity/Detail'),
					}
				]
			},
			//内容管理
			{	
				path : '/content',
				component : () => import(/* webpackChunkName : "content" */ '@v/content/Layout'),
				children : [
					{//文章分类
						path : 'article-classify',
						component : () => import(/* webpackChunkName : "content" */ '@v/content/ArticlesClassify'),
					},
					{//文章列表
						path : 'articles',
						component : () => import(/* webpackChunkName : "content" */ '@v/content/Articles'),
					},
					{//文章详情
						path : 'article-detail/:id?',
						component : () => import(/* webpackChunkName : "content" */ '@v/content/ArticleDetail'),
					},
					{//页面装修
						path : 'page-list',
						component : () => import(/* webpackChunkName : "content" */ '@v/content/PageList'),
					},
					{//页面模块详情
						path : 'page-detail/:id',
						component : () => import(/* webpackChunkName : "content" */ '@v/content/PageDetail'),
					},
					{//模块详情
						path : 'decorate-module-detail/:id?',
						component : () => import(/* webpackChunkName : "content" */ '@v/content/DecorateModuleDetail'),
					}
				]
			},
			//订单管理
			{
				path : '/order',
				component : () => import(/* webpackChunkName : "order" */ '@v/order/Layout'),
				children : [
					{//快递设置
						path : 'express',
						component : () => import(/* webpackChunkName : "order" */ '@v/order/Express'),
					},
					{//订单列表
						path : 'list',
						component : () => import(/* webpackChunkName : "order" */ '@v/order/List'),
					},
					{//订单详情
						path : 'detail/:id?',
						component : () => import(/* webpackChunkName : "order" */ '@v/order/Detail'),
					}
				]
			},
		]
	}
]

export default routes;